<?xml version="1.0" ?>
<tasks>
  <% PNEngine::Transition.find(:all, :order => "id ASC").select { |transition| transition.active? }.each do |transition| %>
    <% transition.active_combinations.each do |combination| %>
      <% if ! combination.first.nil?%>
        <task>
          <transition_id><%= transition.id %><%= "/tokens/"+combination.collect{|token| token.id}.join("/") unless combination.empty? %></transition_id>
          <transition_name><%= transition.name %></transition_name>
          <action><%= transition.action %></action>
          <case_id><%= combination.first.case.id %></case_id>
          <net_name><%= transition.petrinet.name %></net_name>
        </task>
      <% end %>
    <% end %>
  <% end %>
</tasks>